package com.boot.proofing.mpweb.base.entity.enums;

import com.baomidou.mybatisplus.core.enums.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;

/**
 * @description 用户类型
 * @autor xbwu on 2018/5/25.
 */
public enum UserTypeEnums implements IEnum<Integer> {

    NORMAL(1, "普通用户"),ADMIN(999, "管理员");

    private int value;
    private String desc;

    UserTypeEnums(final int value, final String desc) {
        this.value = value;
        this.desc = desc;
    }

    @Override
    public Integer getValue() {
        return this.value;
    }

    @JsonValue
    public String getDesc(){
        return this.desc;
    }
}
